package com.practice2.exercise;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("Spring.xml");
        User user01 = (User) classPathXmlApplicationContext.getBean("user01");
        User user02 = (User) classPathXmlApplicationContext.getBean("user02");
        user01.show();
        user02.show();
    }
}